@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';

body {
  line-height: 1.5;
  overflow-y: hidden;
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: "Monospaced Number", "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
  min-width: 1024px;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.font12 {
  font-size: 12px;
}

.margin24 {
  margin-left: 24px;
  margin-right: 24px;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

.relative {
  position: relative;
}

.fixed {
  position: fixed;
  z-index: 2050;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1);

  &.fixed-wrapper {
    width: calc(100% - 180px);
  }

  &.fixed-bottom {
    bottom: 0;
  }

  &.fixed-top {
    top: 0;
  }
}

//a:focus,
//a:active {
//  outline: none;
//}
//
//a,
//a:focus,
//a:hover {
//  cursor: pointer;
//  color: inherit;
//  text-decoration: none;
//}

a {
  color: #1890ff;
  background-color: transparent;
  text-decoration: none;
  outline: none;
  cursor: pointer;
  -webkit-transition: color .3s;
  transition: color .3s;
  -webkit-text-decoration-skip: objects
}

a:focus {
  text-decoration: underline;
  -webkit-text-decoration-skip: ink;
  text-decoration-skip: ink
}

a:hover {
  color: #40a9ff
}

F
a:active {
  color: #096dd9
}

a:active, a:hover {
  outline: 0;
  text-decoration: none
}

a[disabled] {
  color: rgba(0, 0, 0, .25);
  cursor: not-allowed;
  pointer-events: none
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

code {
  background: #eef1f6;
  padding: 15px 16px;
  margin-bottom: 20px;
  display: block;
  line-height: 36px;
  font-size: 15px;
  font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  a {
    color: #337ab7;
    cursor: pointer;
    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

.warn-content {
  background: rgba(66, 185, 131, .1);
  border-radius: 2px;
  padding: 16px;
  padding: 1rem;
  line-height: 1.6rem;
  word-spacing: .05rem;
  a {
    color: #42b983;
    font-weight: 600;
  }
}

path {
  fill: inherit !important
}

//main-container全局样式
.app-container {
  margin-bottom: 24px;
  background: #fff;
  padding: 0 24px;
  padding-bottom: 10px !important;

  .header {
    font-size: 16px;
    padding: 16px 0;
    color: rgba(0, 0, 0, .85);
    font-weight: 500;
  }
  .extra {
    padding: 14px 0;
    text-align: right;
  }

  &.padding-content {
    padding: 24px 16px;
  }

  &.margin-content {
    margin-left: 24px;
    margin-right: 24px;
  }
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;

  &.align-left {
    text-align: left;
  }

  &.align-right {
    text-align: right;
  }

  &.align-center {
    text-align: center;
  }
}

.text-center {
  text-align: center
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);
  .subtitle {
    font-size: 20px;
    color: #fff;
  }
  &.draft {
    background: #d0d0d0;
  }
  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;
  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;
  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

// custom
.block {
  .title {
    font-size: 16px;
    color: rgba(0, 0, 0, .85);
    font-weight: 500;
    margin-bottom: 16px;
  }
}

.base-detail {
  font-size: 14px;

  .term {
    height: 22px;
    line-height: 22px;
    padding-bottom: 16px;
    margin-right: 8px;
    color: rgba(0, 0, 0, .85);
    white-space: nowrap;
    display: table-cell;
    &:after {
      content: ":";
      margin: 0 8px 0 2px;
      position: relative;
      top: -.5px;
    }
  }
  .detail {
    height: 22px;
    line-height: 22px;
    width: 100%;
    padding-bottom: 16px;
    color: rgba(0, 0, 0, .65);
    display: table-cell;
  }
}

.btn-wrapper {
  margin-bottom: 16px;
}

.inline-wrapper {
  @extend .btn-wrapper;
  &>div {
    margin-right: 10px;
  }
}
/*展示列表的区域，超过200px出现滚动条*/
.scroll-list {
  max-height: 500px;
}

.toolbar {
  position: fixed;
  width: 100%;
  bottom: 0;
  right: 0;
  height: 56px;
  line-height: 56px;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, .03);
  background: #fff;
  border-top: 1px solid #e8e8e8;
  padding: 0 42px;
  z-index: 9;
}

.search-header {
  .el-card__header {
    padding: 5px 20px !important;
  }
}

.vue-treeselect {
  line-height: 1.5;
  font-size: 12px;
}

.vue-treeselect__control {
  height: 32px;
  border-radius: 4px;
}

.vue-treeselect__placeholder,
.vue-treeselect__single-value {
  line-height: 30px;
}

.remark-tag {
  width: 100%;
}

.pagination-container {
  margin-top: 10px;
  font-size: 12px !important;
  .el-pagination__total {
    font-size: 12px !important;
  }
  .el-pagination__jump {
    font-size: 12px !important;
  }

  .el-input {
    font-size: 12px !important;
  }
  .el-input__inner {
    font-size: 12px !important;
  }

  .el-pager {
    li {
      font-size: 12px !important;
    }
  }
}

.pageHeader {
  padding-bottom: 0 !important;
}

//
//.el-table__empty-text {
//  left: 25%;
//}

.track-wrapper {
  .el-radio-button__inner {
    padding: 6px 15px;
  }
  .track-tab {
    .svg-icon {
      font-size: 18px;
    }
  }

  .track-steps {
    padding: 24px 8px;

    .el-step__description {
      text-align: left;
      padding: 16px 0 16px 16px;
      margin: 0 10px;
      border-radius: 4px;
      border: 1px solid #ebeef5;
      background-color: #fff;
      overflow: hidden;
      color: #303133;
      box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1);
    }

    ul {
      padding: 8px 0 0 10px;
      margin: 0;
      text-align: left;
    }

    .steps-item {
      margin-bottom: 8px;
    }

    .svg-icon {
      font-size: 26px;
    }
    .el-step__icon.is-text {
      border: 1px solid;
    }

    .steps-item:last-child {
      color: #409EFF;
    }
  }

  .track-timeline {
    padding: 24px 8px;
    font-size: 16px;

    .title {
      font-weight: 400;
      font-size: 14px;
      padding-right: 10px;
    }

    .circle {
      width: 12px;
      height: 12px;
      border: 3px solid #409EFF;
      border-radius: 50%;
    }
    .el-step__icon {
      background-color: transparent;
    }
    .el-step__description {
      padding-bottom: 8px;
    }
  }
}

.el-tag {
  border: 0;
  border-radius: 30px;
  border-left: 2px #ccc solid;
}

.el-message {
  top: 25%;
}
